package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.NewsCommend;
import cn.wolfcode.trip.base.query.NewsCommendQuery;

import java.util.List;

public interface NewsCommendMapper {
    //删
    int deleteByPrimaryKey(Long id);

    //增
    int insert(NewsCommend record);

    //查单
    NewsCommend selectByPrimaryKey(Long id);

    //查所有
    List<NewsCommend> selectAll();

    //查所有
    int updateByPrimaryKey(NewsCommend record);

    //分页
    List<NewsCommend> selectForList(NewsCommendQuery qo);

    //获取日报推荐的数据
    List<NewsCommend> selectForAppList(NewsCommendQuery qo);
}